package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.UserBankDao;
import com.platform.entity.UserBankEntity;
import com.platform.service.UserBankService;

/**
 * 银行卡表Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2019-02-16 09:43:07
 */
@Service("userBankService")
public class UserBankServiceImpl implements UserBankService {
    @Autowired
    private UserBankDao userBankDao;

    @Override
    public UserBankEntity queryObject(Long id) {
        return userBankDao.queryObject(id);
    }

    @Override
    public List<UserBankEntity> queryList(Map<String, Object> map) {
        return userBankDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userBankDao.queryTotal(map);
    }

    @Override
    public int save(UserBankEntity tUserBank) {
        return userBankDao.save(tUserBank);
    }

    @Override
    public int update(UserBankEntity tUserBank) {
        return userBankDao.update(tUserBank);
    }

    @Override
    public int delete(Long id) {
        return userBankDao.delete(id);
    }

    @Override
    public int deleteBatch(Long[] ids) {
        return userBankDao.deleteBatch(ids);
    }
}
